<%-- 
    Document   : list
    Created on : 12.12.2013, 23:33:49
    Author     : palo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><spring:message code="forest.list.header" /></title>
          
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/style.css" type="text/css" >   
    </head>
    <body>
        <div id="cele">
            <h1><span></span><c:out value="top.main" /></h1>       
            <jsp:include page="../menu.jsp" />
        
        <div id="obsah">    
                <h3><spring:message code="forest.list.header" /></h3>
                <table class="basic">
                    <tr>
                        <th><spring:message code="forest.name" /></th>
                        <th><spring:message code="forest.description" /></th>
                        <th><spring:message code="forest.mushrooms" /></th>
                        <th><spring:message code="tab.edit" /></th>
                        <th><spring:message code="tab.delete" /></th>
                    </tr>
                    <c:forEach items="${forests}" var="forest">
                        <tr>
                            <td><c:out value="${forest.name}" /></td>
                            <td><c:out value="${forest.description}" /></td>
                             <td class="button"><a href="${pageContext.request.contextPath}/forest/mushrooms/${forest.id}"><spring:message code="forest.mushrooms.show" /></a></td>
                            
                            <td class="button"><a href="${pageContext.request.contextPath}/forest/edit/${forest.id}"><spring:message code="forest.edit" /></a></td>
                            <td class="button"><a href="${pageContext.request.contextPath}/forest/delete/${forest.id}"><spring:message code="forest.delete" /> </a></td>
                        </tr>
                    </c:forEach>
                </table>
                <p>
                    <a href="${pageContext.request.contextPath}/forest/add"><spring:message code="forest.add" /></a>
                </p>
           </div>
             
                <jsp:include page="../footer.jsp" />
            

    </body>
</html>
